<div class="view-header">
    <div class="view-header-left ">
        <div ng-show="!add_open">
            <div class="search-shop">
                <i class="fa fa-home"></i>
                <shop-picker class="from-control"
                             shop="search_params.shop"></shop-picker>
            </div>

            <div class="search-date">
                <i class="fa fa-calendar search-date-i"></i>
                <datetimepicker class="search-date-start"
                                min-view="2"
                                end-date="search_params.date_end"
                                ng-model="search_params.date_start"></datetimepicker>

            </div>
            <div class="search-date">
                <i class="fa fa-calendar search-date-i"></i>
                <datetimepicker class="search-date-end"
                                min-view="2"
                                start-date="search_params.date_start"
                                ng-model="search_params.date_end"></datetimepicker>
            </div>
        </div>
        <div class="view-header-left">
            <div class="view-header-item no-widen"
                 ng-show="!add_open"
                 ng-click="refresh()" title="查询">
                <i class="fa fa-search"></i>
            </div>
            <div class="view-header-item color-open"
                 ng-show = "!add_open"
                 ng-click="open_add()" title="新增试驾记录" >
                <i class="fa fa-plus"></i> 新增记录
            </div>

            <!-- add -->
            <div class="view-header-item color-open above-cover no-widen"
                 ng-show = "add_open"
                 ng-click= "add_open = !add_open" title="关闭" >
                <i class="fa fa-close"></i>
            </div>

            <div class="view-header-item color-check above-cover no-widen"
                 ng-show = "add_open"
                 ng-click= "submit_add();add_open = !add_open" title="提交" >
                <i class="fa fa-upload"></i>
            </div>

        </div>
    </div>

</div>
<div class="view-content ">
    <div ag-grid="grid" class="ag-material" style="height :100%"></div>
</div>

